DIRINCLUDE=-I"..\ExternLibs\OpenCV2.0\include\opencv" -I"..\ExternLibs\Tclap"
##########################
DIRLIB=-L"..\ExternLibs\OpenCV2.0\bin_mingw\lib"
##########################
LIB=-lcxcore200 -lcv200 -lhighgui200 -lcvaux200 -lml200 -static-libgcc
##########################
#CPP = g++ -Wl,-rpath,"..\ExternLibs\OpenCV2.0\bin_cmake\lib"
CPP = g++ -O3 -ffast-math
##########################
CPP_RELEASE = g++ -Wl,-rpath,/home/eanes/workspace/OpenCV-2.1.0/lib/ -ffast-math  -funroll-loops -mfpmath=sse -O3
##########################

all : HAC

HAC : HAC.o Point.o 
	@echo ...Starting compilation...
	$(CPP) -O3 -ffast-math HAC.o Point.o -o HAC.exe -Wall $(DIRINCLUDE) $(DIRLIB) $(LIB)
	@echo ...Compilation succeeded...  
	
HAC.o : HAC.cpp
	$(CPP) -c HAC.cpp -o HAC.o $(DIRINCLUDE)

Point.o: Point.h Point.cpp
	$(CPP) -c $(DIRINCLUDE) Point.cpp -o Point.o 
	
# Remocao dos dados antigos para recompilacao:
# --------------------------------------------
clean :
	del HAC.exe HAC.o Point.o
	